<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>

<%
	
	String userName = "";
	String role ="";
	if(session.getAttribute("userName")!=null &&session.getAttribute("role")!=null) {
		userName =(String) session.getAttribute("userName");
		role=  (String)session.getAttribute("role");
		
	}
	if(role.compareTo("admin")==0){
		response.sendRedirect("login.jsp");
		System.out.println("pageValidate.jsp not admin");	
	}
%>